package com.dkm.ec.so.persistence.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.dkm.base.api.model.Page;
import com.dkm.base.db.mybatis.dao.MyBatisQueryDaoImpl;
import com.dkm.ec.so.persistence.dao.SaleReviewQueryDao;
import com.dkm.ec.so.persistence.entity.SaleReviewPo;

/**
 * 对象功能:产品评价 QueryDao接口的实现
 * 开发公司:SKG.COM
 * 开发人员:颜超敏
 * 创建时间:2015-02-10 11:03:42
 */
@Repository
public class SaleReviewQueryDaoImpl extends MyBatisQueryDaoImpl<String, SaleReviewPo> implements SaleReviewQueryDao{

    @Override
    public String getNamespace() {
        return SaleReviewPo.class.getName();
    }

	@Override
	public List<SaleReviewPo> findUserReviewAndSoItem(String userId,Page page) {
		Map<String, Object> whereParams  = new HashMap<>();
		whereParams.put("userId", userId);
		return findByKey("findUserReviewAndSoItem", whereParams, page);
	}


	
}
